package com.huilian.iotbox.admin.wap.service.impl;

import com.huilian.iotbox.admin.wap.dao.CommodityStockRecordItemDao;
import com.huilian.iotbox.admin.wap.service.CommodityStockRecordItemService;
import com.huilian.iotbox.data.dto.CommodityStockRecordItemDto;
import com.huilian.iotbox.data.po.CommodityStockRecordItem;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class CommodityStockRecordItemServiceImpl implements CommodityStockRecordItemService {

    @Resource
    private CommodityStockRecordItemDao commodityStockRecordItemDao;

    @Override
    public Integer insert(CommodityStockRecordItem commodityStockRecordItem) {
        return commodityStockRecordItemDao.insert(commodityStockRecordItem);
    }

    @Override
    public Integer updateStatus(CommodityStockRecordItem commodityStockRecordItem) {
        return commodityStockRecordItemDao.updateStatus(commodityStockRecordItem);
    }
}
